package com.cyf.wechat.network.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.Null;
import javax.validation.constraints.Pattern;

/**
 *
 * Created by cage on 2017/9/18.
 */
@ApiModel(value = "访客申请访问")
public class WechatApplyVisitReq extends WechatBusinessReq {

    @ApiModelProperty(value = "访客的车牌号")
//    @Null(message = "车牌号码不能为空")
//    @Length(min = 7, max = 7, message = "车牌号码不正确")
    private String plate;

    @ApiModelProperty(value = "被访客者电话", required = true)
    @NotBlank(message = "手机号码不能为空")
    @Length(min = 11, max = 11, message = "手机号码不正确")
//    @Pattern(regexp = "^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\\d{8})$", message = "手机号码不正确")
    private String intervieweeMobile;

    @ApiModelProperty(value = "预计访客时间", required = true)
    @Min(value = 1, message = "访客时间错误")
    private int estimateVisitorTime;

    @ApiModelProperty(value = "访客姓名")
    private String name;
    @ApiModelProperty(value = "访客留言")
    private String memo;
    private String imgServerId; //
    private String accessToken;

    public String getPlate() {
        return plate;
    }

    public void setPlate(String plate) {
        this.plate = plate;
    }

    public String getIntervieweeMobile() {
        return intervieweeMobile;
    }

    public void setIntervieweeMobile(String intervieweeMobile) {
        this.intervieweeMobile = intervieweeMobile;
    }

    public int getEstimateVisitorTime() {
        return estimateVisitorTime;
    }

    public void setEstimateVisitorTime(int estimateVisitorTime) {
        this.estimateVisitorTime = estimateVisitorTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getImgServerId() {
        return imgServerId;
    }

    public void setImgServerId(String imgServerId) {
        this.imgServerId = imgServerId;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }
}
